import sys

title_line_number = 67
start_line_number = 72
a = {}
r = {}

if __name__ == '__main__':
    file_name = sys.argv[1]

    with open(file_name) as f:
        all_lines = f.readlines();

    title_line = all_lines[title_line_number - 1].lstrip("#").strip()
    title_line_array = title_line.split()
    for i, val in enumerate(title_line_array):
        a[val] = i + 1

    for k in a.keys():
        r[k] = []

    i = int(start_line_number) - 1
    sum_lines = len(all_lines)
    while i < sum_lines:
        current_line = all_lines[i].strip()
        if (current_line == ""):
            break

        current_array = current_line.split()
        for k, v in a.items():
            r[k].append([float(current_array[v]), float(current_array[0])])

        i += 1

    print(r)
